package com.fire.control.system.module.dailyCheck.control.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.fire.control.system.module.common.controller.BaseController;
import com.fire.control.system.module.dailyCheck.service.IDailyCheckService;
import com.fire.control.system.standard.BusinessInterfaceStandard;
import com.fire.control.system.support.protocol.comman.ResponseProtocol;
import com.fire.control.system.support.protocol.dailyCheck.DailyCheckRequestProtocol;

/**
 * @ClassName: DailyCheckControl
 * @Description: TODO(日常巡检控制器)
 * @author A18ccms a18ccms_gmail_com
 * @date 2017年7月5日 上午9:59:59
 */
@RestController
@RequestMapping("/web/dailyCheckCtr")
public class DailyCheckControl extends BaseController implements BusinessInterfaceStandard<DailyCheckRequestProtocol, ResponseProtocol> {

	@Autowired
	private IDailyCheckService dailyCheckService;
	
	
	/**
	 * @author liuxincheng
	 * @Title: getDailyCheckDetail
	 * @Description: TODO(获得日常巡检列表)
	 * @param @param requestProtocol
	 * @param @return    设定文件
	 * @return ResponseProtocol    返回类型
	 * @throws null
	 */
	@RequestMapping(path="getDailyCheckList",method=RequestMethod.POST)
	public ResponseProtocol getDailyCheckList(DailyCheckRequestProtocol requestProtocol){
		ResponseProtocol response = dailyCheckService.getDailyCheckList(requestProtocol);
		return response;
	}
	
	/**
	 * @author liuxincheng
	 * @Title: getDailyCheckDetail
	 * @Description: TODO(查看日常巡检详细)
	 * @param @param requestProtocol
	 * @param @return    设定文件
	 * @return ResponseProtocol    返回类型
	 * @throws null
	 */
	@RequestMapping(path="getDailyCheckDetail",method=RequestMethod.POST)
	public ResponseProtocol getDailyCheckDetail(DailyCheckRequestProtocol requestProtocol){
		ResponseProtocol response = dailyCheckService.getDailyCheckDetail(requestProtocol);
		return response;
	}
	
	/**
	 * @author liuxincheng
	 * @Title: deleteDailyCheck
	 * @Description: TODO(删除日常巡检)
	 * @param @param requestProtocol
	 * @param @return    设定文件
	 * @return ResponseProtocol    返回类型
	 * @throws null
	 */
	@RequestMapping(path="deleteDailyCheck",method=RequestMethod.POST)
	public ResponseProtocol deleteDailyCheck(DailyCheckRequestProtocol requestProtocol){
		ResponseProtocol response = dailyCheckService.deleteDailyCheck(requestProtocol);
		return response;
	}
	
	/**
	 * @author liuxincheng
	 * @Title: exportDailyCheck
	 * @Description: TODO(导出日常巡检)
	 * @param @param requestProtocol
	 * @param @return    设定文件
	 * @return ResponseProtocol    返回类型
	 * @throws null
	 */
	@RequestMapping(path="exportDailyCheck",method=RequestMethod.POST)
	public ResponseProtocol exportDailyCheck(DailyCheckRequestProtocol requestProtocol){
		ResponseProtocol response = dailyCheckService.exportDailyCheck(requestProtocol);
		return response;
	}
}
